if [ -z $1 ];then
    echo 'usage: ./label_dir.sh <MediaRootPath>'
else
    ls -1th $1/*.jpg > temp.list
    LENGTH=`wc -l temp.list | cut -d ' ' -f 1`
    for ((i=1;i<=$LENGTH;i++))
        do
            FILE=`sed  "$ip" temp.list`
            python labeler.py $FILE 
        done


fi

